<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body th:fragment="userGroup">
<div class="setting_search tabs">
	<div class="btn-group-box">
		<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addUserGroup"><i class="add"></i>添加</button>
		<button type="button" class="btn btn-default border-blue" id="btnUserGroupRm">删除</button>
	</div>
	<div class="group-box">
		<table class="table table-bordered table-striped table-condensed table-hover" style="table-layout: fixed;">
			<thead>
				<tr>
					<th width="5%" style="text-align: center;"><input type="checkbox" id="checkUserGroupListAll"/></th>
					<th width="35%">用户组名称</th>
					<th width="35%">用户组描述</th>
					<th width="25%">状态</th>
				</tr>
			</thead>
			<tbody id="userGroupListTable">
				<tr th:each="entity : ${userGroupMap.get('rows')}">
					<td style="text-align: center;"><input class="id" type="checkbox" th:value="${entity.id}"/></td>
					<td th:title="${entity.name}" th:text="${entity.name}"></td>
					<td th:title="${entity.description}" th:text="${entity.description}"></td>
					<td th:title="${entity.enabled == 0 ?'禁用':'启用'}"  th:text="${entity.enabled == 0 ?'禁用':'启用'}"></td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
<div class="page-msg">共<span th:text="${userGroupMap.total}"></span>记录</div>
<input type="hidden" th:value="${userGroupMap.total}" id="userGroupTotal">
<ul class="pagination" id="userGroupPagination"></ul>
</body>
</html>